package com.itheima.mapper;

import com.itheima.pojo.KsClass;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LoginMapper {
    //第一题
    User findByMobile(String mobile);

    List<KsClass> findAllClass();

    Integer findClassId(String mobile);

    KsClass findClass(Integer classId);

    //第二题
    @Select("select * from user where mobile=#{mobile} and password=#{password}")
    User selectByMobileAndPassword(String mobile, String password);


}
